(function(angular) {
	'use strict';
	angular.module("fs.waf").factory("customerCalendarService", customerCalendarService);
	customerCalendarService.$inject = [ '$q', 'loggerFactory', 'commonService', 'ajaxServiceFactory' ];
	function customerCalendarService($q, loggerFactory, commonService, ajaxServiceFactory) {
		var log = loggerFactory.getLogger("customerCalendarService"), ajaxService = ajaxServiceFactory.buildAjaxService({
			getWeekendsOptions : {
				url : 'do/cda/dataList/weekends',
				method : 'get'
			},
		});
		
		
		function initOptions($scope, ctrl) {
			return $q(function(resolved, rejected) {
				ajaxService.getWeekendsOptions().then(function(response) {
					ctrl.weekendsOptions = response;
					resolved();
				});
			});
		}
		
		return {
			initOptions : initOptions,
		};
	}
})(angular);